{extend name="public:_base" /}
{block name="js"}
{include file="public/_validform"}
{/block}

{block name="main"}
<nav class="breadcrumb">
    <a class="btn radius btn-success radius r" style="line-height:1.6em;margin-top:3px"href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>

<div class="page-container">

    <form action="{:url(\''.\\think\\Request::instance()->controller().'/save')}" method="post" class="form form-horizontal" id="form">
        
        <table class="table table-border table-bordered table-bg table-style">
            <thead>
                <tr>
                    <th colspan="2" scope="col">填写信息</th>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <th>
                        <span class="c-red">*</span>标题：
                    </th>
                    <td>
                        <input type="text" class="input-text" value="{$data.title ?? ''}" placeholder="" id="title" datatype="*" name="title">
                    </td>
                </tr>

                
                <tr>
                    <th>
                        <span class="c-red">*</span>链接地址：
                    </th>
                    <td>
                        <input type="url" class="input-text" value="{$data.url ?? ''}" placeholder="http://同类站的域名" id="url" datatype="url" name="url">
                    </td>
                </tr>
                
            </tbody>
            
            <tfoot>
                <tr>
                    <th></th>
                    <td>
                        {:token()}
                        <input name="id" value="{$data.id ?? ''}" type="hidden" />
                        <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                        <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;重置&nbsp;&nbsp;">
                        <!-- <button onClick="layer_close();" class="btn radius btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button> -->
                    </td>
                </tr>
            </tfoot>
            
        </table>

    </form>
    
</div>
{/block}
